package com.cbtx.utils

import com.blankj.utilcode.util.LogUtils
import java.io.Closeable
import java.io.IOException

/**
 * author : joker.peng
 * e-mail : joker@fiture.com
 * date   : 2021/7/1 2:04 PM
 * desc   :
 */
object IOUtil {
    /** 关闭流  */
    fun close(io: Closeable?): Boolean {
        if (io != null) {
            try {
                io.close()
            } catch (e: IOException) {
                LogUtils.e(e)
            }
        }
        return true
    }
}